<!doctype html>
<html class="no-js">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="description" content="">
    <meta name="keywords" content="">
    <!-- <meta name="viewport" content="width=device-width, initial-scale=0">
    <meta name="viewport" content="width=drvice-width,height=device-height,inital-scale=1.0,maximum-scale=1.0,user-scalable=no;"> -->
    <meta name="viewport" content="width=device-width,user-scalable=no, initial-scale=1">
    <title>设置</title>

    <link rel="icon" type="image/png" href="../qgj_qt/images/favicon.png">
    <link rel="stylesheet" href="css/amazeui.min.css">
    <link rel="stylesheet" href="css/swiper.min.css">
    <link rel="stylesheet" href="css/app.css">
    <link rel="stylesheet" href="/layui/css/layui.css" media="all">
    <!-- jquery -->
    <script src="/jquery/jquery.js"></script>
    <script src="/layui/layui.js"></script>

</head>

<body>

<!-- 外框 -->
<div id="waik">
    <!-- 头部 -->
    <div id="top" style="background:#01AFF0;" class="ziye_top">
        <div class="sos_t sos_t_zy ">
            <div class="fanh_shang fanh_yems">
                <a href="javascript:;" onclick="history.back();"><img src="images/return1.png" style="width:10px;"></a>
            </div>
            <div class="text">设置</div>
            <div class="right">
                <div class="zd"><a href="#">&nbsp;</a></div>
            </div>
        </div>
    </div>
    <!-- 内容 -->
    <br>
    <br>
    <div class="list_index_my" style=" margin-top:1px;">
        <div class="my_dind">
            <div class="bt">
                <a href="my_zh_anquan">
                    <h3>个人信息设置</h3>
                    <div class="right">
                        <img src="images/arrow.png">
                    </div>
                </a>
            </div>
        </div>
    </div>
    <div class="list_index_my">
        <div class="my_dind">
            <div class="bt">
                <a href="#">
                    <h3>意见反馈</h3>
                    <div class="right">
                        <span></span>
                        <img src="images/arrow.png">
                    </div>
                </a>
            </div>
        </div>
        <div class="my_dind">
            <div class="bt">
                <a href="#">
                    <h3>关于APP</h3>
                    <div class="right">
                        <span>v1.1.0</span>
                        <img src="images/arrow.png">
                    </div>
                </a>
            </div>
        </div>
    </div>
    <?php if(session('userinfo')==null){?>

          <div class="anquantc" style="background:#01AFF0;" onclick="document.location='login_index';"><a>登录</a></div>

    <?php }else{?>

          <div class="anquantc" style="background:#01AFF0;" ><a href="" id="info">退出登录</a></div>

    <?php }?>
    <!-- 外框结束div -->
</div>
<!-- js妹子ui -->
<script>
    $('#info').click(function(){
        layui.use('layer', function(){
            var layer = layui.layer;
            layer.open({
                title: '退出登录'
                ,content: '退出登录后将无法获取新信息，确定退出登录吗？'
                ,btn: ['确定', '取消']
                ,yes: function(index, layero){
                    $.get({
                        url:"login_out",
                        success:function (data) {
                            layui.use('layer', function(){
                                var layer = layui.layer;
                                if(data.code=='1') {
                                    layer.open({
                                        title: '退出登录'
                                        , skin: 'msg'
                                        , content: data.name
                                        , yes: function () {
                                            location.href = data.url;
                                        }
                                    });
                                }
                            });
                        }
                    });
                    //return false 开启该代码可禁止点击该按钮关闭
                }
                ,btn2: function(index, layero){
                    location.href = 'index_content';
                    //return false 开启该代码可禁止点击该按钮关闭
                }
            });
        });
        return false;
    });
</script>
</body>
</html>

